package com.itheima.service;

import com.itheima.entity.dto.shoppingcart.ShoppingCartDto;
import com.itheima.entity.dto.shoppingcart.ShoppingCartSubDto;
import com.itheima.entity.vo.shoppingcart.ShoppingCartAddVo;
import com.itheima.entity.vo.shoppingcart.ShoppingCartListVo;

import java.util.List;

/**
 * @author huangzelnag
 * @create 2022-05-12
 */
public interface ShoppingCartService {

    /**
     * 根据用户id获取购物车列表
     * @return
     */
    List<ShoppingCartListVo> getShoppingCartList();


    /**
     * 添加购物车
     * @return
     */
    ShoppingCartAddVo addShoppingCart(ShoppingCartDto shoppingCartDto );

    /**
     * 删除购物车中的商品
     * @param shoppingCartSubDto
     */
    Boolean delShoppingCartSub(ShoppingCartSubDto shoppingCartSubDto);

    /**
     * 清空购物车
     * @return
     */
    Boolean delShoppingCart();
}
